<template>
  <div >
<div v-for="infos in info" :key="infos.id">
    <el-descriptions  class="margin-top" title="体质类型" :column="4" direction="vertical">
  <el-descriptions-item label="用户名">{{name}}</el-descriptions-item>
  <el-descriptions-item label="套餐名">{{infos.setmeal.name}}</el-descriptions-item>
  <el-descriptions-item label="是否为气虚质">{{ infos.qiasthenia === 1 ? '是' : '否' }} </el-descriptions-item>
  <el-descriptions-item label="是否为阳虚质" >{{ infos.yangquality === 1 ? '是' : '否' }} </el-descriptions-item>
  <el-descriptions-item label="是否为阴虚质" >{{ infos.yindeficiency === 1 ? '是' : '否' }} </el-descriptions-item>
</el-descriptions>
</div>
  </div>
</template>

<script>
export default {
data () {
    return {
        info:'',
        name:this.$store.state.name.name
    }
},
methods:{
    show(){
          // 发送GET请求
          this.axios
        .get("/rear/type", {
          params: { memberid: this.$store.state.name.id},
        })
        .then((rep) => {
          this.info = rep.data;
          console.log(rep.data);
        });
    }
},
created(){
  this.show();

}
}
</script>

<style scoped>
</style>